import React from 'react'
import { Row, Col } from 'antd'
import settingItem from './components/settingItems';
const Setting = (props) => {
    const { selectIndex, data = {} } = props
    if ((!selectIndex && selectIndex!==0)||Object.keys(data).length===0) {
        return null
    } else {
        const { type } = data
        const Render = settingItem[type]
        return <div className='setting_rule_box'>
            <Render {...props}></Render>
        </div>
    }

}
export default Setting